check number is positive or negative in javascript